package pms.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

/**
 * @author josef@dr-schneeberger.de
 */
public class LoescheSaison extends AlleSaisonen {
	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest,
			HttpServletResponse httpServletResponse) throws Exception {
		int id = Integer.parseInt(httpServletRequest.getParameter("id"));
		getSaisonDao().deleteById(id);
		return super.handleRequestInternal(httpServletRequest, httpServletResponse);
	}

}
